<?php
require_once 'config.inc.php';
require_once 'template.php';

define('ROOT', dirname(__FILE__));
define('IN_HOME', true);

Zend_Loader::loadClass('Zend_Db');
$db = Zend_Db::factory('PDO_MYSQL', $config->production->db);

$tpl = new Template();
Zend_Registry::set('view', $tpl);
$tpl->caching = true;
if(!$tpl->is_cached('template.html')) {
	$tpl->assign('name', 'wangsan');	
}
$tpl->display('template.html');
?>